package com.zbkj.dal.entity.order;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会费（锁定金额）充值订单表
 * </p>
 *
 * @author jhui
 * @since 2023-09-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ba_dues_order")
public class DuesOrder implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 会员ID
     */
    private Integer uid;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 充值金额
     */
    private BigDecimal price;

    /**
     * 支付方式:weixin,alipay
     */
    private String payType;

    /**
     * 支付渠道：public-公众号,mini-小程序，h5-网页支付,wechatIos-微信Ios，wechatAndroid-微信Android,alipay-支付包，alipayApp-支付宝App
     */
    private String payChannel;

    /**
     * 是否支付 -> 改为状态
     * @see com.zbkj.dal.base.enums.DuesStatusEnums
     */
    private Integer paid;

    /**
     * 充值支付时间
     */
    private LocalDateTime payTime;

    /**
     * 支付服务方订单号
     */
    private String outTradeNo;

    /**
     * 充值时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


}
